﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hook.Graphics;
using Hook.Graphics.SpriteSheets;
using Microsoft.Xna.Framework;

namespace Hook.Environmental.Props
{
    class StretchJoint : Prop
    {
        public StretchJoint()
            : base()
        {
            //Sprite = new Sprite(Game1.PropSheet, PropSheet.THICKLINK);
            //Sprite.Origin = new Vector2(10, 46);

            List<Vector3> VO = new List<Vector3>();

            float Radius = 20;
            int Points = 6;

            for (int n = 0; n < Points; n++)
            {
                VO.Add(new Vector3(Radius * (float)Math.Cos(n * (2 * Math.PI / Points)), Radius * (float)Math.Sin(n * (2 * Math.PI / Points)), 0));
            }

            Frame.SetPoints(VO);

            Mass = .5f;
            Inertia = 1000;
            //GravityOn = true;

            //CollisionLayer.Add(0);
        }
    }
}
